package com.yt.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Classname CommonResult 用于返回前端消息的通用类
 * @Description
 * @Date 2021/10/17 20:02
 * @Create by 杨涛
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {
    private int code;
    private String message;
    private T data;
    public CommonResult(int code, String message){
        this(code,message,null);
    }
}
